package com.atguigu.springcloud.dao;

import com.atguigu.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Author 赵赳
 * @CreateTime: 2021/2/25 0:06
 * @Description:
 */
@Mapper
public interface PaymentDao {
    /**
     * 创建订单号
     * @param payment
     * @return
     */
    int creat(Payment payment);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    Payment getPaymentById(Integer id);

}
